import http from '@/utils/httpRequest'
import api from './api.js'

export function getMyCategoryList (params) {
  return new Promise(function (resolve, reject) {
    http.request(api.myCatList, params).then(res => {
      res.code === 0 ? resolve(res) : reject(res)
    })
  })
}
